public class test_12_1 {
    public static void main(String[] args) {
        MySingleList mySingleList=new MySingleList();
        mySingleList.createLink();
        mySingleList.display();
        System.out.println("--------------------");
        System.out.println(mySingleList.contains(100));
        System.out.println(mySingleList.size());
        System.out.println("-----------------------");
        mySingleList.addLast(1);
        mySingleList.addLast(2);
        mySingleList.addLast(3);
        mySingleList.addLast(4);
        try{
            mySingleList.addIndex(0,5);
        }catch (ListIndexOutOfException e){
            e.printStackTrace();
        }
        mySingleList.display();
        System.out.println("--------------------");
        mySingleList.removeAllKey(444);
        mySingleList.display();


    }


}



